.class final Lcom/TwinBlade/PicturePassword/y;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroid/widget/AdapterView$OnItemSelectedListener;


# instance fields
.field final synthetic a:Lcom/TwinBlade/PicturePassword/GesturePreferences;


# direct methods
.method private constructor <init>(Lcom/TwinBlade/PicturePassword/GesturePreferences;)V
    .locals 0
    .parameter

    .prologue
    .line 145
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/TwinBlade/PicturePassword/GesturePreferences;Lcom/TwinBlade/PicturePassword/y;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 145
    invoke-direct {p0, p1}, Lcom/TwinBlade/PicturePassword/y;-><init>(Lcom/TwinBlade/PicturePassword/GesturePreferences;)V

    return-void
.end method


# virtual methods
.method public onItemSelected(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 149
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->a(Lcom/TwinBlade/PicturePassword/GesturePreferences;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "SecondGestureType"

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-virtual {p1, p3}, Landroid/widget/AdapterView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->a(Lcom/TwinBlade/PicturePassword/GesturePreferences;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 150
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->b(Lcom/TwinBlade/PicturePassword/GesturePreferences;)V

    .line 152
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 153
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->c(Lcom/TwinBlade/PicturePassword/GesturePreferences;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_2

    .line 157
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->d(Lcom/TwinBlade/PicturePassword/GesturePreferences;)Landroid/widget/Spinner;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->a(Lcom/TwinBlade/PicturePassword/GesturePreferences;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v2, "none"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 158
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->d(Lcom/TwinBlade/PicturePassword/GesturePreferences;)Landroid/widget/Spinner;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    .line 160
    :cond_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->f(Lcom/TwinBlade/PicturePassword/GesturePreferences;)Landroid/widget/Spinner;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->a(Lcom/TwinBlade/PicturePassword/GesturePreferences;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v2, "none"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 161
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->f(Lcom/TwinBlade/PicturePassword/GesturePreferences;)Landroid/widget/Spinner;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    .line 164
    :cond_1
    new-instance v0, Landroid/widget/ArrayAdapter;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->e(Lcom/TwinBlade/PicturePassword/GesturePreferences;)Landroid/content/Context;

    move-result-object v2

    .line 165
    const v3, 0x1090008

    .line 164
    invoke-direct {v0, v2, v3, v1}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;ILjava/util/List;)V

    .line 166
    const v1, 0x1090009

    invoke-virtual {v0, v1}, Landroid/widget/ArrayAdapter;->setDropDownViewResource(I)V

    .line 168
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/y;->a:Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/GesturePreferences;->g(Lcom/TwinBlade/PicturePassword/GesturePreferences;)Landroid/widget/Spinner;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 169
    return-void

    .line 153
    :cond_2
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/TwinBlade/PicturePassword/v;

    .line 154
    iget-object v0, v0, Lcom/TwinBlade/PicturePassword/v;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0
.end method

.method public onNothingSelected(Landroid/widget/AdapterView;)V
    .locals 0
    .parameter

    .prologue
    .line 174
    return-void
.end method
